package www.woniuxy.com.class112.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import www.woniuxy.com.class112.entity.WorkOrderDetails;
import www.woniuxy.com.class112.entity.WorkOrderDetailsExample;

public interface WorkOrderDetailsMapper {
    long countByExample(WorkOrderDetailsExample example);

    int deleteByExample(WorkOrderDetailsExample example);

    int deleteByPrimaryKey(Long id);

    int insert(WorkOrderDetails record);

    int insertSelective(WorkOrderDetails record);

    List<WorkOrderDetails> selectByExample(WorkOrderDetailsExample example);

    WorkOrderDetails selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") WorkOrderDetails record, @Param("example") WorkOrderDetailsExample example);

    int updateByExample(@Param("record") WorkOrderDetails record, @Param("example") WorkOrderDetailsExample example);

    int updateByPrimaryKeySelective(WorkOrderDetails record);

    int updateByPrimaryKey(WorkOrderDetails record);
    @Select("select * from work_order_details where order_id=#{id}")
    WorkOrderDetails selectByWorkId(Long id);
}